package com.xy.xymall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xy.common.utils.PageUtils;
import com.xy.xymall.product.entity.AttrAttrgroupRelationEntity;
import com.xy.xymall.product.entity.AttrGroupEntity;
import com.xy.xymall.product.vo.AttrGroupWithAttrsVo;
import com.xy.xymall.product.vo.SkuItemVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author XY
 * @email 2447315136@qq.com
 * @date 2020-04-11 10:30:32
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    void deleteRelation(AttrAttrgroupRelationEntity[] attrs);

    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatId(Long catelogId);

    List<SkuItemVo.SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuIdAndCatlogId(Long spuId,Long catelogId);
}

